<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>进度条</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        #progress {
            width: 750px;
            height: 40px;
            margin: 100px auto;
            position: relative;
        }

        #progress_bar {
            width: 700px;
            height: 100%;
            background-color: #ccc;
            position: relative;
            border-radius: 5px;
        }

        #progress_bar_flg {
            width: 25px;
            height: 50px;
            background-color: red;
            position: absolute;
            left: 0px;
            top: -5px;
            border-radius: 5px;
        }

        #progress_bar_value {
            width: 0px;
            height: 100%;
            background-color: red;
            position: absolute;
            left: 0;
            top: 0;
            border-radius: 5px 0 0 5px;
        }

        #progress_value {
            position: absolute;
            right: 0;
            top: 0;
            height: 100%;
            line-height: 40px;
        }
    </style>
</head>

<body>
    <div id="progress">
        <!--进度条-->
        <div id="progress_bar">
            <!--拖动按钮-->
            <span id="progress_bar_flg"></span>
            <span id="progress_bar_value"></span>
        </div>
        <!--进度值-->
        <span id="progress_value">0%</span>
    </div>

    <script>
        var flg = document.querySelector('#progress_bar_flg');
        var value = document.querySelector('#progress_bar_value');





    </script>

</body>

</html>